package com.sky.mapper;

import com.sky.entity.SearchHistroy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SearchHistoryMapper {

    @Select("select search_value from search_histroy where search_value =#{content} order by time desc" )
    List<SearchHistroy> selectByContent(String content);

    @Select("select search_value from search_histroy  order by time desc" )
    List<SearchHistroy> select();
}
